#include <16F628A.h>
#include "cell_manage.h"

#fuses HS,NOWDT,NOWDT

#use delay(internal=4M)

#use rs232(baud=9600, bits=8,xmit=PIN_B2,rcv=PIN_B1)

/* define flags */
#define DATA_RCV PIN_B4 

/* define outputs */   
#define OUT1 PIN_A3

/* methods definition */
void reset_config(void); 

void main(){
  
    int16 outputs[2], *pouts;
    char data[50];
    outputs[0] = PIN_A3;
    outputs[1] = '\0';
    pouts = &outputs[0];

    for(;;){
        inCi(&data[0]);
        outCi(&data[0],pouts);
    }
}

void reset_config(void){
   output_low(DATA_RCV);
}

